package com.finer.remote.warehouse;

import com.finer.dto.warehouse.GoodsTypePageDTO;
import com.finer.entity.ResponseMessage;
import com.finer.entity.document.FinerGoodsType;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangenhao
 * @interfaceName FinerGoodsTypeRemote
 * @description 商品类别remote接口
 * @date 2024-10-21 下午2:35
 */
@RestController
@RequestMapping("/goodsType")
public interface FinerGoodsTypeRemote {

    @RequestMapping("/page")
    ResponseMessage getGoodsTypePage(GoodsTypePageDTO goodsTypePageDTO);

    @RequestMapping("/add")
    ResponseMessage addGoodsType(@RequestBody FinerGoodsType finerGoodsType);

    @RequestMapping("/{id}")
    ResponseMessage getGoodsTypeById(@PathVariable Integer id);

    @RequestMapping("/checkTypeCode")
    ResponseMessage checkGoodsTypeCode(String typeCode);

    @RequestMapping("/update")
    ResponseMessage updateGoodsType(@RequestBody FinerGoodsType finerGoodsType);

    @RequestMapping("/delete")
    ResponseMessage deleteGoodsType(Integer id);
}
